#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	int n,r[100000];
	cin>>n;
	for(int i=0;i<n;i++)cin>>r[i];
	sort(r,r+n);
	for(int i=1;i<n;i++)
	{
		if(r[i]>r[0])
		{
			for(int j=0;j<n-1;j++)r[j]=r[j+1];
			n--;
			i--;
		}
	}
	cout<<n;
	return 0;
}
